Fix activating features in dependencies transitively
authorAlex Crichton <alex@alexcrichton.com>
Mon, 3 Aug 2015 22:10:31 +0000 (15:10 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 3 Aug 2015 22:10:31 +0000 (15:10 -0700)
commite2e1751a06b1ba79b651417343bb27ee04140d34
treec49dc47db975a30ea8e2782cb46f90c895e8a94b
parent553b363bcfcf444c5bd4713e30382a6ffa2a52dd
Fix activating features in dependencies transitively

When activating the feature `foo/bar` you're actually activating both the
feature `foo` and the `bar` feature of the relevant package. Cargo previously
forgot to activate the `foo` feature, and this commit fixes that up.

Closes #1871
src/cargo/core/resolver/mod.rs
tests/test_cargo_features.rs